package la.iok.hzsvn.lewin.movie.shopmovie.mapper;

import la.iok.hzsvn.lewin.movie.shopmovie.entity.ShopMovie;
import la.iok.hzsvn.lewin.movie.shopmovie.model.ShopMovieListParam;
import la.iok.hzsvn.lewin.movie.shopmovie.model.ShopMovieModifyParam;
import la.iok.hzsvn.lewin.mybatis.mapper.BaseMapper;

import java.util.List;

public interface ShopMovieMapper extends BaseMapper<ShopMovie> {

    /**
     * 修改记录
     * @param id 记录的id
     * @param param 修改参数
     * @return 受影响记录数。应该为1
     */
    int updateByParam(Long id, ShopMovieModifyParam param);

    List<ShopMovie> list(Long orgUnitId, String orderColumn, String order, ShopMovieListParam listParam);
}
